
$(function() {

    $("#cover1").click(function(){
      $(this).hide();
    });

    $('#tabs').tabs({
        border:false,
        selected:0,
        onSelect:function(title){
            //alert(title+' is selected');
            $("#toolbar-title").html(title);
        }
    });

    setTbMenuStyle();
});

function showMenu(){
    $("#cover1").show();
}

function setTbMenuStyle(){
    var tb = document.getElementById('table-menu');    // table 的 id
    var rowLen = tb.rows.length;          
    for(var i=0; i<rowLen; i++ ){
        var cellLen=tb.rows[i].cells.length;
        for(var j=0;j<cellLen;j++){
           if(i<rowLen-1){
               tb.rows[i].cells[j].style.borderBottomWidth="1px";
           }
           if(j<cellLen-1){
               tb.rows[i].cells[j].style.borderRightWidth="1px";
           }
        }
    }
}
